import React from 'react';
import {
  BasicLayoutProps
} from '@ant-design/pro-layout';
import RightHeader from './components/RightHeader'
import './global.less'
import { createLogger } from 'redux-logger';
import { message } from 'antd';
// 其实不需要运行时配置了,配置了会报错
// export const dva = {
//   config: {
//     onAction: createLogger(),
//     onError(e: Error) {
//       message.error(e.message, 3);
//     },
//   },
// };
export const layout = (): BasicLayoutProps => {
  return {
    rightContentRender: () => <RightHeader />,
    footerRender: () => <footer>footer</footer>
  }
}
